update links code