first approach to main window