Updating last added document