simulating delay in page generation