refactoring FilesList.js