Allocated main menu in class MainMenu.