fix for waiting to load page if the url will not change