added functionality to popover - click on link sets the selected
filename into the input field (for easy loading)