added listeners to buttons
added listeners to mainmenu buttons