Adding dragging behavior to the frontend.