Added dragging behaviour and sorting behaviour