Change boolean attribute value form to checkbox