Prevent default when click cancel buttons