simple refactor products controller