Made edit mode deal with setting checkbox values