Convert index back to html