added capability for overlay-dialogs in mainwindow itself
login window is now opened in main window