change link and remove useless links