fixed weight save/load plus misc fixes in ui (disable/enable threshold fields when apppropriate)