disable dropdown when offline