Added debug logging functionality
Upload view works now, all other views disabled