selecting and deselecting now working