Added loop support for main menu