Implementing TemplateView and RedirectView