Proper handling of the region change