                 let webViewController = LeafViewController(url: detailViewURL)
                 self.navigationController?.pushViewController(webViewController, animated: true)
             }
-            
         }
     }
-    
-    //MARK: ClientDelegate
+}
+
+
+// MARK: - ClientDelegate
+extension EntryListViewController: ClientDelegate {
     func loadFinishedWithResult(result: Dictionary<String, AnyObject>?) {
         if result != nil {
             self.dataDict = result

            })
        }
    }
    
}

            SVProgressHUD.dismiss()
        })
    }

}

//MARK: - UITableViewDataSource
extension EntryListViewController: UITableViewDataSource {

    func numberOfSectionsInTableView(tableView: UITableView) -> Int {
        if self.dataDict?.count == 0 {
            let messageLabel = UILabel(frame: CGRectMake(0, 0, self.view.bounds.size.width, self.view.bounds.size.height))
