setting active class on page change