refactoring: main menu (2)