added features to exporting pdf