add the function of show pdf