Added onDismiss event to dialog. Fixes #86