delete unnecessary code in draggable