add a timer handler