update diagram transition