Updated to check the files when you click on the row