restart animation button functionality added