Calling the new function, 'CancellingTask' within the on click of Cancel action