move main menu to template