Disable mode button when it shouldn't be changed. close #273