added delay in getting main page.