Improve night mode and loading spin
Fix var 'period' of dashboard undefined
Don't render nav toggle in home page
Improve event handling of time panel