fix button.lua and toggle.lua