working on getting info for first tab, bug in the control flow