Bug fix for cancel buttons and ajax wrapper callbacks.