update links and remove active class