solved dragging issue