re-did the way dragging element is constructed