cleaning up view controller