Improved data binding in the diagram editor