replaced the view with a template for export