Update in text function