debugging mostly done except textboxes don't display properly