now you can save null values; added tri-state checkbox