implemented a simple search function.
added pagination to the search results.