fix cdr-detail view + template