The fact you're in the midst of a custody dispute means that you and your ex can't agree on how much time each parent will have the kids. If you can't settle your case through mediation, you'll need to present your case to a judge. A child's best interests are central to any custody decision.