save and load transactions to local storage