change to redirect to pdf