Making pagination a template instead of a partial
Caching the rows to prevent unnecessary server calls
Adding pagination template
Refactoring