changed ad to use id from elsewhere on the page