       #######
       # when clicking outside of bar, close it
       if hard_select
-        $(document).click (ev) => @close_bar_click()
-        $(document).keyup (ev) => @close_bar_key(ev)
+        $(document).on 'click.histogram', (ev) => @close_bar_click(ev)
+        $(document).on 'keyup.histogram', (ev) => @close_bar_key(ev)
         ev.stopPropagation()
       #######
 


  close_bar_click : (ev) -> @deselect_bar() if $(ev.target).closest('.m-results-responders').length == 0

  close_bar_key : (ev) ->
    if ev.keyCode == 27 && $('#registration_overlay').length == 0 && $('.m-point-expanded').length == 0
      @deselect_bar()
  
  deselect_bar : (ev) ->



    $selected_bar.removeClass('m-bar-is-selected m-bar-is-hard-selected m-bar-is-soft-selected')

    $(document).off 'click.histogram'
    $(document).off 'keyup.histogram'
  

  show_user_explanation : (ev) ->
