updated main window to use DockPanels instead of fussing with margins