add reset function to timer