Moving class change from rendered in ToggleButton