Move main menu to separate source file