adding logic to construct URL for each deal