Refactoring Category Controller