refactors to remove root node thing from controllers