updated time mode and energy mode