update links and pages