working color picker and grid toggle functions