Changes the main controller.