Working main window