initialize main-controller, login-view.