better detection of when page is done
detecting page load