build mainmenu first this may be over riding the toggle for local