fixed bugs with time widget update