Adds a 'toggle grid' button