Fixed the selection functionality

- fixed the selection to also work when the checkbox is clicked
directly, not just on double-clicks
- removed an unused variable and two unnecessary suppressions