Invoke onClick() when user clicks cancel button.