added setElement for renderDom