title: How do I set the visibility of a widget to false?
body: <p>So, I have this function:</p>
  
  <pre><code>local function addMainMenu()
      local widget = require( "widget" )
  
      -- Function to handle button events
      local function handleButtonEvent( event )
  
          if ( "ended" == event.phase ) then
              scene = "GAME"
          end
      end
  
      -- Create the widget
      local button1 = widget.newButton(
          {
              label = "button",
              onEvent = handleButtonEvent,
              emboss = false,
              -- Properties for a rounded rectangle button
              shape = "roundedRect",
              width = 200,
              height = 40,
              cornerRadius = 2,
              fillColor = { default={0.9,0.9,0.9,1}, over={1,0.1,0.7,0.4} },
              strokeColor = { default={0,0,0,1}, over={0.8,0.8,1,1} },
              strokeWidth = 5
          }
      )
  
      -- Center the button
      button1.x = display.contentCenterX
      button1.y = display.contentCenterY
  
      -- Change the button's label text
      button1:setLabel( "Start Game" )
  end
  </code></pre>
  
  <p>That adds the button to start the game, and then I have:</p>
  
  <pre><code>local function enterFrame()
      local dt = getDeltaTime()
      if (scene == "MAIN_MENU") then
           addMainMenu()
      elseif (scene == "GAME") then
          if (running == false) then
              startGame()
          else 
              moveBg(dt)
              moveEnemy(enemy)
              updateScore()
          end
      elseif (scene == "GAME_OVER") then
          local gameOverLabel = display.newText( "Game Over!", 50, 20, native.systemFont, 16)
          gameOverLabel:setFillColor(1, 1, 1)
      end
  end
  </code></pre>
  
  <p>As you can see, once I click on the button to start, the scene changes to "GAME", and the button should go away. The thing is: It stays there. <a href="https://docs.coronalabs.com/api/library/widget/newButton.html" rel="nofollow noreferrer">And reading the docs</a>, I can't find a way to set its visibility to false. How can I cease displaying a widget?</p>