adjust edit for diagram