make pids available to theme layer without intefering with results. Also make first field a link