rework dom element.