toggle the comit box with cancel