updated table data display so that it takes into account sorting and filtering