Added purchase history to main page