clearing dom on each new encounter