 
   $scope.unsubscribe = ->
     # Delete feed model from the scope
-    index = $scope.feeds.indexOf $rootScope.current_feed
+    index = $scope.feeds.indexOf currentFeedSvc.get()
     $scope.feeds.splice index, 1 if index != -1
 
     # Before deleting from the global scope, save some data we'll need later
-    path = "/feeds/#{$rootScope.current_feed.id}.json"
-    unread_entries = $rootScope.current_feed.unread_entries
-    folder_id = $rootScope.current_feed.folder_id
+    path = "/feeds/#{currentFeedSvc.get().id}.json"
+    unread_entries = currentFeedSvc.get().unread_entries
+    folder_id = currentFeedSvc.get().folder_id
 
     # Update folders
     find_folder('all').unread_entries -= unread_entries
-    feed_removed_from_folder $rootScope.current_feed, folder_id
+    feed_removed_from_folder currentFeedSvc.get(), folder_id
 
     # Tell the model that no feed is currently selected.
-    unset_current_feed()
+    currentFeedSvc.unset()
 
     $http.delete(path)
     .error ->

  #--------------------------------------------

  $scope.read_feed = (feed)->
    set_current_feed feed
    load_feed feed, false

  #--------------------------------------------

  #--------------------------------------------

  $scope.show_start_page = ->
    currentFeedSvc.unset()
    $scope.loading_entries = false

  #--------------------------------------------
