Add toggleState action.