Add backToRootFrame method
boilarplate code