how to manage legal disputes