changed button to toggle to allow deselecting features with invalid data