refactor(textfield): code cleanup