new code for diagram, need to set route for dragging the connection