Refactored retrieve data method in order to enable multiple pages of products