refactor OperatorCatagories: move selectedCategory to state