Manage animation on buttons click