set type for radio and checkbox