rewrite checkboxes plugin