finished of the totals summary panel. Still needs cleanup, but its working now atleast