That's a good point. There are cases where the settings button isn't shown when the only possible editor is the settings editor, so I needed to make the code not fail if the button didn't exist. I should make sure in the else clause that it is the settings editor being shown.