refactoring, added category controller and view,