Default CSS for activeStates changed. prevAllClasses functon added.