formatting
updating pdf creation for details