made adding transaction into a modal and fixed refreshing envelope