removed redundant code from views and models.

unused model fields that were not needed removed. added a new check for if a file exists by appending user id on the filename