Updating references
Fixed bug removing old document when re-saving page
Synced branch