added dragging of entire elements