exposed statechange event for tools