added transaction history functionality