cleanup and testing of newTextBox