passing transactions to the view