Change Collapse method for tables