fixes navbar highlighting for some pages