added mouseClicked handler to mainMenuState