changing goToRoot with a transitionToRoute