add resign first responder to cancel