Sounds like the smart choice to me. And I think the important thing was that you weren't doing this because he pressured you and you felt a moral obligation to -- you did it because it was the best thing for the kids.
That's the biggest thing, I think, that your motivations have changed, you're thinking clearly, you're out of the F.O.G. of codependency and you're making decisions based on rational reasoning.