Made onStage and onResize handlers optional.