Ajax for application/cancelation improved