Changing the code so we display the UI and update the lights using the same timeline.