initial code base for text box