Wait for the page to load before doing anything