formatting and styling changes for improve pdf creation