Made animations only work when the segmented control is tapped.