set up clearing of categories tab on click so repeats are eliminated