Pdf popup now works with previews