add timer functionality