add history to each template