use sleep to allow page to be created