implemented dragging in new elements