adjust main window UI