         if(self.numberOfReceiptsChangedUponLastUpdate &&
                 !self.refreshControl.refreshing &&
                 scrollOffset + scrollViewHeight >= 0.8 * scrollViewContentSizeHeight) {
+            print("Debug: scrollViewDidScroll update") // <- DEBUG
             loadAdditionalReceipts()
         }
     }

        self.numberOfReceiptsChangedUponLastUpdate = (previousNumberOfReceipts == updatedNumberOfReceipts) ? false : true;
    }
    
    // styling-related methods for the table-view
    func setupTableViewStyling() {
        self.tableView.rowHeight = UITableViewAutomaticDimension
        self.tableView.estimatedRowHeight = 160;
        self.tableView.backgroundView = nil
        self.tableView.separatorColor = UIColor.digipostDocumentListDivider()
        self.tableView.backgroundColor = UIColor.digipostDocumentListBackground()
    }
    
    func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {

    var mailboxDigipostAddress: String = "";
    var receiptsUri: String = "";
    var numberOfReceiptsChangedUponLastUpdate: Bool! = true;
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        self.navigationItem.title = "Receipts"
        
        self.receiptsTableViewDataSource = UncategorisedReceiptsTableViewDataSource.init(asDataSourceForTableView: self.tableView)
        self.tableView.delegate = self;
    }
    
    override func viewWillAppear(animated: Bool) {
