add views and routes for search.