Refactor the regionInspector to be inside a closure & add tests
[inspector] update UI to fetch ui data from view collection