edit diagrams