showing pdf file name and image file name when changing the image and pdf