close dialog on menu item activate