creating new elements with directives