   $scope.selectedGene = (gene) ->
     guidesFactory.data.genes.push gene
     $scope.guidesReady = false
-    $scope.generateGuidesPromise = guidesFactory.generateGuides().then (guidesData) ->
-      computeGuidesData(guidesData["gene_to_exon"])
-      $scope.guidesReady = true
+    $scope.generateGuidesPromise = guidesFactory.generateGuides().then (task_id) ->
+      $location.path('/designer/' + task_id)
 
   $scope.selectedTissue = (tissue) ->
     guidesFactory.data.tissues.push tissue
     $scope.guidesReady = false
-    $scope.generateGuidesPromise = guidesFactory.generateGuides().then (guidesData) ->
-      computeGuidesData(guidesData["gene_to_exon"])
-      $scope.guidesReady = true
+    $scope.generateGuidesPromise = guidesFactory.generateGuides().then (task_id) ->
+      $location.path('/designer/' + task_id)
 
   # $scope.additionalGene = "" # what the person is typing.
   # $scope.$watch 'additionalGene', () ->

    $scope.guidesReady = false
    guidesFactory.data.tissues.splice(idx, 1)
    $scope.generateGuidesPromise = guidesFactory.generateGuides()
    $scope.generateGuidesPromise.then (guidesData) ->
      computeGuidesData(guidesData["gene_to_exon"])
      $scope.gene = $scope.gene_to_exon[0]
      $scope.guidesReady = true

  # Searching
  $scope.geneTissueQuery = ""

            break

    $scope.guidesReady = false
    $scope.generateGuidesPromise = guidesFactory.generateGuides().then (task_id) ->
      $location.path('/designer/' + task_id)

  # individual guide selection
  $scope.show_different_guides = false
