Added GUIHandler

also formatted