remove some uneeded dom elements