adding generation of html in single page format