select active section on navbar for non-home pages