change main menu logic