add commands to statemachine visualisation