implemented element not found in DOM errors returning