code cleanup: main menu