added ajax modal box for editing documents that have just been uploaded