bug fix

changed switch to checkbox for backwards compatability.