public void toggleContainerHUD(HUD h) {
        HUD hud = null;

        boolean isOpen = false;

        //see if the hud is currently open
        for (int i = (huds.size() - 1); i >= 0; i--) {
            hud = huds.get(i);
            if (hud == h) {
                isOpen = hud.getShouldRender();
                break;
            }
        }

        if (isOpen) {
            hud.setShouldRender(false);
        } else {
            //make sure all the other huds are closed and show the container
            for (int i = (huds.size() - 1); i >= 0; i--) {
                hud = huds.get(i);
                if (hud.getIsContainer()) {
                    if (hud == h) {
                        hud.setShouldRender(true);
                    } else {
                        hud.setShouldRender(false);
                    }
                }
            }
        }

        checkRestoreCuror();
    }