Add an option to build optgroups with additional checkboxes and click all events