Added a simple form of pagination to the search