improved going to mainmenu
merging