The top window is pulled from open invoice table. The transactions associated with it in the bottom table is the transactionPayment history table. If there is nothing in the open invoice table, there is nothing for the top panel. Without anything in the top panel, there is nothing to display in the bottom panel.