Replaced direct_to_template with TemplateView