added main menu functionality