structure; mainmenu can be defined anywhere