added didBeginEditing delegate method