Added the top bottom check for high level menu items