changed all rootscopes to routeParams