implemented collapseCell