end enditing on menu close