First html is generated successfully