restructure: remove  in mainController