update edit diagram