update links and modify routes