updated the toggle animation