adding element as a child using directive