Fixing menu opening code

The way the code used to be it would open ALL menus when one was clicked.