Updated refreshNotification function to take section into account