added createGui function to MapWindow