Added onCancel() callback for invite action
Adjusted sample app to handle onCancel()