working code, earier one had probllems with the :id attribute for checkbox_tag