added buy button, categories has memory