Help with Making a Menu Disappear when another menu is open?


So I have a wallpaper I'm working on (available here: and I followed craftmaths tutorial to make the manus close when another menu was open. However it seems all I can do as of now is make it switch between the 'Apps' menu and the 'More' menu, and I really am not sure why. I'd really appreciate some help!