           kd.utils.defer =>
             @apiTokenListView.listController.addItem apiToken
 
-    if @initialAPIAccessState
-    then @addNewButton.enable()
-    else @addNewButton.disable()
+    toggleButtonState @addNewButton, @initialAPIAccessState
 
     tabView.addPane apiTokens = new kd.TabPaneView name: 'API Tokens'
 

    @addSubView tabView



            else apiSwitch.setOn no

          else
            toggleButtonState @addNewButton, state

    apiSwitch.setDefaultValue @initialAPIAccessState

