add countdown in data function