improved display page

added a script that waits for the page to load before displaying it