update links and headers