Delegate instead of method «showAlert» added