diary showing as a html file function added