Building out MainController