adding onTimeEnd to countdown-timer