added pin dragging