make id global in index.html
avoid history change when dragging midpoint

dragging a midpoint onto an adjacent node
should do nothing