Update animation view switch and fix the memory bugs of non-ARC

Update animation view switch and fix the memory bugs of non-ARC