changed direct_to_template with TemplateView