refactoring to Products, Categories Controller