textbox input
refactoring