FOnStateChanged

State change event Called every time the state is changed