added grid visibility toggle.