Refactor : controllers and cats repository