added display pdf function