narrowing an issue with hidden elements in the html