Partly working refactored GUI.