Move logic for adding location.#text to export page