making the on/off checkbox work