changed pagination to table.pagination