refactored ticker, fixed bg night-daylight effect