refine pagination and enable fuzzy search