added isNotGranted template block