Fix for Issue #33

-Saves state of checkbox as a local variable when state is toggled