finish dom edit