added toggle availability switch