starting on main window