atempted to implement buy button functionality