update the setting menu and change the position of the panels in main window