fix header spacing and update anchor hrefs