expanded mainController