add countdown callback code