edit diagram