refactor the file details page view and add thumnails support for files