added primative popToRootViewController method