Added function to open a file from the details screen