loadVisibleElements method added