Renamed connectwindow back to mainwindow.