Extracted html into index.html and used Jinja template engine.