Added locals to $transition in handlers