Create toggleAll function and expose it