adding page paths and active class