added more callbaks for animation.