created two new methods to retrieve ag child elements, forEachElement and forEachVisibleElement