Refactoring mainMenu
Refactoring mainMenu