fixed animations on switching views