completed the pagination for inventory records and products