render template when create shadow dom with data