updates to the getElementsFromPage