Added control gui to main window.