update the detail template file