Revert "Changed how the definition of the active menu item."

This reverts commit 878e72199d5b54ffdb9571e544550548e83ec272.
Changed how the definition of the active menu item