#12 created basic directive undoDialog