main window improve