fixes to a bunch of bugs with textboxes and labels caused by the last update