Modified the api return value structure to include table and summary top level elements. created  functions for the collapsible for sumary