change name from loginWindow to MainWindow