using TemplateResponse in cms.views

fixes #1740