Convert index page to html