adjusted productsearch to handle itemsPerPage parameter correctly