improved management of menus