split up the createGUI part in teh GUI controller to prevent a
nullpointer.