moves methods to beerdata controller