fix payments table column widths, properly json-encode contacts for autocomplete