removed redundant dom initialization