Cleanup the main view controller