added isAnimating field