added api for summarizing pages