Cleaning up main panel