As stated above, don't fight with or say anything negative about the ex in front of the kids. That puts more stress on the kids. I've seen kids thrive with divorced parents and I've seen them crash and burn hard. I've lost two cousins to drugs because of an ugly divorce, one I will never see again and the other still has a chance if he wants it. Both were very happy positive kids before the divorce.
Another thing is when you are with the kids be engaged with them not just there.