Addition of a custom element using a template