update history when uploading file
update viewer for file inputs
update model