GUI opening box and scene at the same time.

Hi guys I have an error in my script I think, and I can’t find it.

I have a scene with 2 buttons at the bottom, each on a separate Boolean that opens a GUI box with buttons in the box. But when I click on the button at the bottom marked “choose your shirt” it opens up the new GUI box but also loads a new scene with out touching the buttons that link to the scenes.

If any one can see why could you let me know I can seem to spot why.

if(GUI.Button(Rect((Screen.width * 0.5) - 200, Screen.height - 90, 200, 70), "choose your shirt")) 
    
    {
    isBoxShowing = !isBoxShowing;
    }
    
    
    	if(isBoxShowing)
    	
    {
    	GUI.Box(Rect((Screen.width * 0.5) -200,(Screen.height * 0.5) - 300, 400, 600), "select team");
    	
    	
    	if(GUI.Button(Rect((Screen.width * 0.5) -180,(Screen.height * 0.5) - 260, 360, 40), "Chelsea"));
    	{
    	Application.LoadLevel("Chelseakit");
    	}
    	
    	if(GUI.Button(Rect((Screen.width * 0.5) -180,(Screen.height * 0.5) - 210, 360, 40), "Barcelona"));
    	{
    	Application.LoadLevel("Barcelonakit");
    	}
    	
    	if(GUI.Button(Rect((Screen.width * 0.5) -180,(Screen.height * 0.5) - 160, 360, 40), "Manchester")); 
    	{
    	Application.LoadLevel("Manchesterkit");
    	}
    	
    	if(GUI.Button(Rect((Screen.width * 0.5) -180,(Screen.height * 0.5) - 110, 360, 40), "Liverpool"));
    	{
    	Application.LoadLevel("Liverpoolkit");
    	}
    	
    }

Maybe because you are rendering the second button at the same position as the first button that opens the list.

So the IMGUI system gets confused?