fixed the html and removed some browser wait