handling active class for nav items