added new delegate method for animation state changes