add facets link, add treemap link, trim inputs before saving