mainmenu addbutton functionality