adding relevance variable to view template