Updating title in the navigation bar when changing the animation.