Add basic pagination
Priotize the search term