Adding pagination capabilities to the listing view