update for text and textfield