adding animation delete functionality