added mechanism to download pdf