fixing toggle availability