Export to PDF function added