Implemented IoC for loading view.