update reorder and datatables, fix logic to handle column 0