switching button functionality to match openscad