Added new handler for search results. Business logic moved from mainpage to search handler.