switch confirm and cancel in schedule modal