improve pdf showing link to generation pdf