properly handle events inside of menus