change folder to project id
refactor file logic to project model