changed variable from int to booolean

changed the variable associated with the checkbutton from int to boolean
with values true and false