touched up the textbox, small refactor