Refactor RootCtrl