save the routing information on closing the dialog