Changed duplicate category task to use checkboxes; added checks to limit which categories are flagged as duplicates