fixes for toggling checkboxes by index rather than text