added pagination and links to search results page.  Also, moved search function to own route