working on main window