v2.0.4 add toggleOn and toggleOff events to change state