Clean up the main panel and have it expand to the size of the window