Fix bug where states for light #0 didn't get saved.
Rearrange CSS and view fragments.