     constructor: (@rootscope, @storage, @model, @rs, @http, @urls, @config, @translate, @currentUserService,
                   @themeService) ->
         super()
+
+        @._currentTheme = @config.get("defaultTheme") || "taiga" # load on index.jade
+
         userModel = @.getUser()
         @.setUserdata(userModel)
 

            user = @model.make_model("users", userData)
            @rootscope.user = user
            @._setLocales()
            @._setTheme()
            return user

        return null

        else
            @.userData = null

    _getUserTheme: ->
        return @rootscope.user?.theme || @config.get("defaultTheme") || "taiga"

    _setTheme: ->
        newTheme = @._getUserTheme()

        if @._currentTheme != newTheme
            @._currentTheme = newTheme
            @themeService.use(@._currentTheme)

    _setLocales: ->
        lang = @rootscope.user?.lang || @config.get("defaultLanguage") || "en"
