fixed the sortable table stuff