adding data-template-name attribute