update MainScene code