clean up dom elements