setup timer for update ui