add active class mechanism to nav