added page and per_page to query