Added popToRootViewController method