fix links and headers