adding page and per_page for search