Update history links when section changes