templates rendered by search and search_result function