Save checkbox value on click