Update revision of document objects on save

Update revision of document objects on save