Updated globalMenu to have working subItems

- SubItems can now be added to the globalMenu
- globalMenuItems now close on #app being clicked