changes in MainController