chagned button animation implementaion