GUI Separation

Separated the GUI functionality from the main GUI method