Sorry I don't understand why we need reset(remove the visibilitychange event listener)... I thought you already init ThreadUi in the setup, right?