make pagination bar in product-listing work