Added refresh functionality for the animation