adds afterClose callback to UploadFormView