add element directive