pseudocode for confirm, decline, reschedule and cancel