added functionality for active class on nav links