EditVehicle logic changed

Edit vehicle did not work proparly