Mavs coach leaving for Idaho