Implement dealloc method for main view controller