Added a leave method in MainMenuViewState to remove unwanted behaviour