modified animationComponent to use timers