Improve checkbox selecting in tables

This change allows nesting of tables without checkboxes across the tables mix up.