added pagination to search methods