StateMachine updated as listener