adjusted the sizes of the panels and main window