Pass mode rather than checkbutton id