How to use the StateChange event