cleans up view.