finally make the dragging work