update title based on doc.title