MenuScene button listener method phase control is added.
Global callback funtion is converted to local function.