remove excess tags from page