finally got dragging working