Added pagination and ID to the table.  also made fix to logic to checkboxes to switch properly