Update the diagram with editing events. Add diagram edit templates