Added pagination to table module