Modify MainController to a Singleton and Explain how to connect view and
MainController