loading beer centered and refactored outside off onclclk