Added a didBeginEditing delegate method