Added method to collapse all expanded cells, to avoid a crashing bug