update head and remove hrefs