[DF-1582] run action when the switch was triggered