made adapter more general, adapter now takes two string and one boolean arrays for name, value, and editable