set active menu item correctly.