adding functionality to the checkout page