changed edit vehicle panel algorithm