worked some more on the gui, the close button works now :)