added the active class for each page in the nav