added support for creating a grid of checboxes