Adding main menu and parent item flags