implemented deselection of categories