Bug 850965 fix

I have edited lines 396 to 420 to fix bug 850965: so the current page is focused on in the menu bar