editing diagrams