added grid system and switching background for night and day system