Added switching between different guis using the added "Windows" menu.
Fixed crash when switching to another gui, while a widget was selected, and selecting a widget of the new gui.