making sure to target correct element when building import preview; switching from hash to array for headers