More logic updated for mainmenu (template)