Populate contents into the form fields when a selection is chosen from the media directory