Make the toggle method public.