added textFieldDidBeginEditing delegate