refactor search page to display paginated results by 'type' param in query string.