added animations to ToggleSwitch