updating to use innerhtml instead of innertext