new windows appear in the spot of the old window
refactored code to represent transaction instead of purchases