         
         self.cartTableView.reloadData()
         
-        
+        //handles the logic for the budgetProgressBar
         if Budget.shared.budgetMax != nil {
             
             budgetProgressBar.isHidden = false

    override func viewDidLoad() {
        super.viewDidLoad()
        
        self.cartTableView.dataSource = self
        self.cartTableView.delegate = self
        
        let itemCell = UINib(nibName: "CartItemCell", bundle: nil)
        self.cartTableView.register(itemCell, forCellReuseIdentifier: CartItemCell.identifier)
        

        )
    }
    
    //Opens popup for setting the budget
    @IBAction func SetBudget(_ sender: Any) {
        let popupView = createPopupview()
        
