add history detail template