added Stage.onResize event