notification category logic