refactoring and change to OEMIV pattern

Minor imports refactoring
Change UI to support the new open entity manager in view pattern.