Reworked add active class to link.