Move updateDom into renderer