   ###
   changeToContext: (contextId, onChange, mouse) ->
     if(@contextChangeCallback?) then @contextChangeCallback()
-    $("#container").unbind("click")
-    if(mouse) then $("#container").bind("click", mouse)
+    $(document).unbind("click")
+    if(mouse?) then $(document).bind("click", mouse)
     if(onChange?) then @contextChangeCallback = onChange
     @currentContext = contextId
 


  ### Allocation menu context ###
  allocMenuContext: (element) ->
    #if(Game.isMyTurn())
    @changeToContext(@Contexts.AllocMenu, @allocMenuContextChange)
    @drawAllocationMoveMenu(element)
    thisReference = this
    $('#unallocated li').unbind('click')
    $('#unallocated li').bind 'click', (event) ->
      thisReference.allocMenuContext(this)




    else
      $('#answer-submit-btn').hide()
      $('#unallocated li').bind 'click', (event) ->
        event.stopPropagation()
        thisReference.allocMenuContext(this)

    $('#answer-add-dice-btn').unbind('click')
