logic updates to paymentModal