add functional active class to nav