Refactor to add event listeners and start periodic updates for all trac instances.