Added download as html and download as pdf functionality