                 if let json = data {
                     let str = try NSJSONSerialization.JSONObjectWithData(json, options: NSJSONReadingOptions.AllowFragments)
                     self.purchases <-- str
-                    dispatch_async(dispatch_get_main_queue(), {
-                        self.tableView.reloadData()
-
-                        UIView.animateWithDuration(0.4, animations: {
-                            self.totalView?.backgroundColor = self.colorForTotalCost()
-                            self.totalLabel?.text = "Total: $\(self.costTotal())"
-                        })
-                    })
+                    self.presentData()
                 }
             } catch _ {
             }
         })!.resume()
-        
     }
     
     override func viewDidLoad() {

        self.refreshControl = UIRefreshControl()
        self.refreshControl!.addTarget(self, action: "refresh:", forControlEvents: UIControlEvents.ValueChanged)
        
        self.setBlankData()
        self.loadInitialData()
        
        // Uncomment the following line to preserve selection between presentations

        
        return cell
    }
    
    override func tableView(tableView: UITableView, canEditRowAtIndexPath indexPath: NSIndexPath) -> Bool {
        return true
    }
    
    
    // Override to support editing the table view.
    override func tableView(tableView: UITableView, commitEditingStyle editingStyle: UITableViewCellEditingStyle, forRowAtIndexPath indexPath: NSIndexPath) {
        if editingStyle == .Delete {
            // Delete the row from the data source
            self.purchases.removeAtIndex(indexPath.row)
            tableView.deleteRowsAtIndexPaths([indexPath], withRowAnimation: .Fade)
            self.presentData()
            
            // TODO commit the change to the server
        } else if editingStyle == .Insert {
            return // unsupported
        }
    }
    
    /*
    // Override to support rearranging the table view.
    override func tableView(tableView: UITableView, moveRowAtIndexPath fromIndexPath: NSIndexPath, toIndexPath: NSIndexPath) {
