addtransaction and  localStorage