Closes #501 by updating the javascript to carry over showUploadScanButton and showEditButton.