some work on main window