complete pagination for searches