add countdown functionality