refreshing correctly while dragging