moved MainWindow to ui library