Make sketch shorter, simply

But Wich value is that in the sketch?

The suggestion was made to call the function to display the menu only when there was a new menu to display. It isn't rocket surgery to figure out which value defines the menu to display.

Why haven't you removed the useless code? Why haven't you properly indented the code?