Change API field: file -> source
Rewrite horrible array index and embeded html
Separate API calls and fill field values