made variables pass through view function and added a different view when there are no files to list. Also created a directory called files and made file from the form to be saved there