history working, added buy button