Apply completion on resignFirstResponder