added a template for detail view