Added checkboxes
Buttons may ignore the func parameter now
Updated the example for checkboxes