Refactors main menu