A lawyer needs to advise you on what to do with your kids in a legal sense.
A counselor needs to be involved with your sons. Both for you and advice on what's in their best psychological interest, and for your sons to have someone to help them through this. My stomach flipped when I thought about how they will be feeling like they have been abandoned twice now.