checking if user has enabled notification api, made it more responsive