added method to update notifications