adding animation for the rendering