add logic for checkout ui
add new logic for checkout logic