updated to use sortable table