update connections on dragging