master switch buttons implemented with toasts but may be an issue with the toasts