Updated the table appropriately when selecting check boxes