added more functionality to buy button on menu