scoping data and pulling in html