main window ui adjustment