My menu wont open when a button is pressed

Hi guys, I’m working on a menu, wherein there is a button you can click on to open a list of items. however, when I click on the button (using this code) it doesn’t work

if (GUI.Button (Rect (20,20, 60, 30), "Items")) {
				//The first window for items
				(GUI.Box (Rect (0, 0, 600, 300), "All Items"));
			}

Am I forgetting something?
Here is the entire script:

private var menuOpen = false;

function Update(){
	if (Input.GetButtonDown("Menu")){
		if (menuOpen == false){
		menuOpen = true;
		Time.timeScale = 0;
		}
		else {
		menuOpen = false;
		Time.timeScale = 1;
		}
	}
}

function OnGUI () {
		if(menuOpen == true){
			
			(GUI.Box (Rect (0,0,Screen.width,Screen.height), "Main Menu"));
			//First button
			if (GUI.Button (Rect (20,20, 60, 30), "Items")) {
				//The first window for items
				(GUI.Box (Rect (0, 0, 600, 300), "All Items"));
			}

				
		}
}

The problem is, that if(GUI.Button(…)) becomes true (you clicked on the button) your GUI.Box becomes visible for a split second only. I guess you should be using a boolean that is set to true when the button is clicked and false when clicked again. Then show your GUI.Box whenever your boolean is true.

var showItems : boolean = false;

function OnGUI () {
       if(menuOpen == true){

         (GUI.Box (Rect (0,0,Screen.width,Screen.height), "Main Menu"));
         //First button
         if (GUI.Button (Rect (20,20, 60, 30), "Items")) {
           if(!showItems){
               showItems = true;
           }else{
               showItems = false;
           }
         }

        if( showItems){
          (GUI.Box (Rect (0, 0, 600, 300), "All Items"));
        }
       }
}