Could the gui be loaded in the constructor? This would save the game from loading the xml file every time the singleplayermenu is shown.