updated doc with id and title