slightly simplified checkboxes and radio buttons tree rendering