started implementing text box behavior