better events handling + fix a bug with the first node dragging event