add url to detail view and template