 
 jQuery ->
 
-  _vn = Bixby.view.monitoring
+  _bv = Bixby.view
+  _vn = _bv.monitoring
+  _bm = Bixby.model
   Bixby.app.add_state(
     class MonViewHostState extends Stark.State
       name: "mon_view_host" #  canonical name used for state transitions

      load_data: ->
        needed = []
        if ! @host?
          @host = new Bixby.model.Host({ id: @params.host_id })
          needed.push @host

        if ! @commands
          @commands = new Bixby.model.MonitoringCommandList()
          needed.push @commands

        return needed


      url:  "monitoring/hosts/:host_id" #  match() pattern [optional]

      views:      [ _bv.PageLayout, _vn.Layout, _vn.ResourceList ]
      no_redraw:  [ _bv.PageLayout, _vn.Layout ]
      models:     { host: _bm.Host, resources: _bm.ResourceList }

      events: {
        mon_hosts_resources_new: { models: [ _bm.Host ] }
      }

      create_url: ->
