create the toggle