same as in StageDialog