Add global object.
Add MainController to application controller.