init MainWindow, not MainDialog, for MainGUI