search method refactored for new feature
constructing next page parameters