Modify some method in MainViewController.