resetEditState