updated dom check