add timer to handle scroll