Add template for detail page