Modified logout popView method to popRootView