save cell values on clicks