Fixed logic for displaying new notification popups.