changes the root and name of controllers