Add wait so that we are sure the page has loaded