Selecting and deselecting table cells