added 'mode'
switched buttons to checkboxes.
allows visual cue of current state