private void popMenu() {
   if (!menuStack.isEmpty()) {
     menuStack.pop();
   }
 }
 private void clearMenus() {
   while (!menuStack.isEmpty()) {
     menuStack.pop();
   }
 }