Improvement setValue for TextField