Added a toggle button to show and hide grid on click.