add uiManager to MainWindow