open the main window when no other window is opened