Functionalized the html file buffer