added the dom edition mode