Handling grouping of alerts and notifications