added ui support for setting region