Newbie Question: Why Does My Button "work" No Matter Where I Click?

I have a problem, i have a button in the top left corner called “menu”, when you click it it goes to the main menu, but for some reason it doesn’t matter where i click on my game, it will take me to the main menu. Heres the pieces of code i believe this problem it is:

First piece of code:

function scene:createScene(event) screenGroup = self.view local createHud = function () gameBg = display.newImage("bg.png") lvlnumber = display.newImage("lvlnumber.png", 0, -6) menubutton = display.newImage("menubutton1.png", -10, -6) screenGroup:insert(gameBg) screenGroup:insert(lvlnumber) screenGroup:insert(menubutton) clueText = display.newText( "DOG", 0, 450, "Arial", 16) clueText:setTextColor(255, 255, 255) clueText.x = 160 screenGroup:insert(clueText) lvlText = display.newText ( "1", 0, 20, "Arial", 16) lvlText:setTextColor(255, 255, 255) lvlText.x = 157 screenGroup:insert(lvlText) menuText = display.newText ( "Menu", 0, 16, "Arial", 16) menuText:setTextColor(255, 255, 255) menuText.x = 53 screenGroup:insert(menuText) end

Second piece of code:

function scene:enterScene(event) local group = self.view local function onSceneTouch( event ) if event.phase == "ended" then storyboard.gotoScene( "menu", "slideRight", 500 ) return true end end function startButtonListeners(action) if(action == 'add') then menubutton:addEventListener('touch', onSceneTouch) end end startButtonListeners('add') --function alert() gameListeners("add")

Oh by the way, this is NOT the full code, its just the bit that is related to my problem :slight_smile: