Add control for grid on/off
Add action and control for grid color
Remove another code duplication