changes for exporting to pdf