Changed how active menu item is selected