add animation to buttons