Updated Buy controller