updated statemanager, and slightly changed State to createGUI()