add contents to the template