update the dom object insertion