Fix updating current url when saving file to a different location.
Fix updating url and text in FileDocument.