added template to detail view