Checkbox state saving

Saves the boolean state of the checkbox in the alertdialog