Clean up main view.