getting the dragging to work