adding animation view to logic