refactoring wines controller