change cancel style and remove the warning