clean up a few bugs from the day, add some functionality to textbox