Add associated file attribute
Rework some of the code in files/views and files/tasks for readability