dialog dismiss action controlled on mCallbacks

dialog dismiss action controlled by onConfirmClick, and onCancelClick.
added return type as boolean to return the permission to dismiss dialog.