code simplified: setInterval and checkDeadline function removed, and notified status and resulting display update now handled via the alarm callback