add delete animation function