update timer logic