updated to include a templated way to modify the html