Disable new class box if offline

This makes it clearer that changes won't be saved