added a timer for UI updates