update timer accordingly