empty dom before appending