set endEditing on menu close