       else
         # Settings have changed. Ask to save and return to menu when answered.
         LOI.settings.persistSettings.showDialog
-          dialogProvider: @menu.layout
+          dialogProvider: @menu.home.layout
           callback: =>
             @currentScreen @constructor.Screens.MainMenu
 


    else
      LOI.settings.persistLogin.showDialog
        dialogProvider: @menu.layout
        callback: (value) =>
          Accounts._autoLoginEnabled = value
          Accounts._enableAutoLogin() if value


    else
      consentField.showDialog
        dialogProvider: @menu.home.layout

  onClickBackToSettings: (event) ->
    @currentScreen @constructor.Screens.Settings
