Implemented pagination when browsing search results