added directives to template