added the animation on/off feature