   active: (params) =>
     super
     @render()
-    $('[data-link="graphs"]').addClass 'pressed'
+    
+    @setPressed $('[data-link="graphs"]')
+    @setPressed $('[data-source="all"]')
+
     @options = new Object
     @headingText.html '<h2>Construct Your Question</h2>'
 
     @options.graphType = params.graphType or 'histogram'
+
 
     switch @options.graphType
       when "histogram"


  setSampleSize: (e) =>
    @options.sampleSize = $(e.currentTarget).val()

  onSubmit: (e) =>
    e.preventDefault()

    # @graph.getDataSource("SkyServerSubject", @options.sampleSize)
    # @histogram.getDataSource("InteractiveSubject", {sample: @options.sample, limit: parseInt(@sampleSize.val()), user: false})


  # Helper functions
  setPressed: (button, force_selection = true) =>
    # Check for case where no button is selected.
    unless button.parent().find('button').hasClass 'pressed'
      button.addClass 'pressed'
      return

    if button.hasClass 'pressed'
      unless force_selection
        button.siblings().removeClass 'pressed'
        button.toggleClass 'pressed'
    else 
      button.siblings().removeClass 'pressed'
      button.toggleClass 'pressed'
   
  serializeXmlNode: (xmlNode) ->
    if typeof window.XMLSerializer != "undefined"
