trigger state change event at deactivation