changing pages also change the active navbar option