Dumb widget button listener question

I’m in a bit of brainfreeze, I have a button in my toolbar that opens the menu with this code below. But after the transition is done I want the same button to slide the menu back up again. It seems like a really silly problem but my mind is totally blank atm…

Thanks for the help.
Cin

[code]
local function onBtnRelease(event)
print(“menu pressed”)

transition.to( group, { time = 450, y = 436, transition =easing.inOutExpo} )

storyboard.gotoScene(“menuScreen”)
end
[/code] [import]uid: 65840 topic_id: 24525 reply_id: 324525[/import]

Maybe set a flag for whether the menu is showing, if the flafg is true when the button is pressed, slide the menu away. [import]uid: 127106 topic_id: 24525 reply_id: 99273[/import]