 
 class NotificationCenterViewController: UIViewController, UITableViewDelegate, UITableViewDataSource, NotificationCellDelegate, NotificationDelegate {
 	
-	var notifications: [TempoNotification] = []
-	let length = 20
+	var notifications = [NotificationType : [TempoNotification]]()
+	let length = 40
 	var page = 0
 	var isLoadingMore = false
 	let postHistoryVC = PostHistoryTableViewController()

	
	func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
		return notificationCellHeight
	}
	
	func scrollViewDidScroll(_ scrollView: UIScrollView) {
		let contentOffset = scrollView.contentOffset.y
		let maximumOffset = scrollView.contentSize.height - scrollView.frame.size.height;
		if !isLoadingMore && (maximumOffset - contentOffset <= CGFloat(0) && notifications.count < 60) {
			self.isLoadingMore = true
			page += 1
			fetchNotifications()
		}
	}
	
	// MARK: - Notification Cell Delegate

	func fetchNotifications() {
		API.sharedAPI.fetchNotifications(User.currentUser.id, length: length, page: page) { (notifs) in
			for notif in notifs {
				self.notifications[notif.type]?.append(notif)
			}
			self.isLoadingMore = false
			DispatchQueue.main.async {
