updating the whole text