adding new structure to support checkboxes as well