Pause button fades away on scene create?

Edit: Nevermind i fixed it already.

Heya!

I am trying to add a pausescreen with the composer overlay to a tutorial by Jay that i am following but somehow the pause button dissapears during transition of my play screen which is very strange! I can still click on it but it wont do anything anymore except still print the text i show at sceneshow part of composer.

I want my pausebutton to display the overlay it did before but it wont react!

Can anyone tell me what is wrong with my small piece of code?

I am struggling here and would appreciate any help i can get!

Regards,

local function createPlayScreen(grp) local background = display.newImage("images/background.png") background.y = 130 background.alpha = 0 planet = display.newImage("images/planet.png") planet.x = centerX planet.y = display.contentHeight + 60 planet.alpha = 0 transition.to( background, { time=2000, alpha=1, y=centerY, x=centerX } ) local function showTitle() gameTitle = display.newImage("images/gametitle.png") gameTitle.alpha = 0 gameTitle:scale(4, 4) transition.to( gameTitle, {time=500, alpha=1, xScale=1, yScale=1} ) startGame() end transition.to( planet, { time=2000, alpha=1, y=centerY, onComplete=showTitle } ) scoreTxt = display.newText( "Score: 0", 0, 0, "Helvetica", 22 ) scoreTxt.x = centerX scoreTxt.y = 10 scoreTxt.alpha = 0 local pauseBtn = widget.newButton({labelXOffset = 5, label="| |", id="pause", width = 20, height = 20, onRelease=goSomewhere}) pauseBtn.anchorX = 1 pauseBtn.anchorX = 0 pauseBtn.x = screenRight-30 pauseBtn.y = screenTop + 20 grp:insert(pauseBtn) end