added main menu button functionality