That is what I was saying. But, you have tooooooooo many braces. Also, learn to indent correctly, it hurts my eyes to read that.
And, I didn't realize, at the time, that you had cvar checks in the handler. You can get rid of those because if the options won't be in the menu then you won't ever get to that case anyways.