Moved window to a GUI class