can preserve the toggle button state now, and two buttons are independent