First integration of main menu in main cycle