adding animation to buttons