Back Buttons and PDF's or JPG Popups

we are trying but so far none of the examples have provided the x to close the popup