code for cancel(Special filters)