fixed issues setting text content fields

the last change broke the file and folder browse button logic.  It also
made it so that text input fields could not be set just by updating the
setting associated with the field.  Added fixes for both issues, but
probably should revisit the issue when time permits.