Fixing category search

The old qubit stuff was hella slow, so I wrote a new checkbox handling
thing.