update links in history