Handled Close button event! Rebuild Gui structure some, trying to go for more class oriented stuff.