use timer because the timer could be easy stop when onpause and start onresume