added timer to record activity