fix return type in MainWindow init