fix some add/edit issues
finally fix TW-38286
add basic data verification to dialog
fix used machines disabling