refactoring menus