     g.xp = getParameterByName("xp")
     dsg = g.xp
     console.log("the xp is " + g.xp)
+    initViz()
     loadXP()
-    initViz()
   ).fail () ->
     console.log("fail to get current user, going back to login screen")
     window.location.href = location.origin

loadXP = () =>
  ($.get "/addie/"+dsg+"/design/read", (data) =>
    console.log("design read success")
  ).fail (data) =>
    console.log("design read fail" + data.status)

#Global event handlers
root.vz_mousedown = (event) ->

    @elements.push(e)
    @ve.render()
    e

  getElement: (name, sys) ->
    e = null
    for x in @elements
      if x.props.name == name  && x.props.sys == sys
        e = x
        break
    e


  addIfContains: (box, e, set) ->
    o3d = null
