add transaction array access in main viewdidload