openTab: function(type) {
        var current;
        switch (type) {
          case 'geojson':
            current = '#draw-tab-button';