fixed up bugs to do with producing "export to portfolio" link twice
fixed up warning messages from still using old portfolio api