update the way to set title for root