add TTL in showMovingBar