refactor modalRegion