         }
     }
     
+    func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
+//        print(indexPath.row)
+        switch indexPath.row {
+        case 0:
+            filterName = "negative"
+        case 1:
+            filterName = "redFilter"
+        case 2:
+            filterName = "blueFilter"
+        case 3:
+            filterName = "greenFilter"
+        case 4:
+            filterName = "alphaFilter"
+        default:
+            print("Nothing to Do!")
+        }
+        if filterName != nil {
+            applyFilter(filterName: filterName!)
+            enableCompareEditButton()
+        }
+    }
+    
     func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
         return filters.count
     }
     
     func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
         let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "FilterIdentifier", for: indexPath) as! FilterPhotoCell
-        cell.backgroundColor = UIColor.black
+//        cell.backgroundColor = UIColor.black
         cell.filterImage.image = filters[indexPath.row]
         return cell
     }

            hideSlider()
            sender.isSelected = false
        } else {
            if self.secondaryMenu.isDescendant(of: self.view) {
                filterButton.isSelected = false
                hideSecondaryMenu()
            }
            showSlider()
            sender.isSelected = true

        }
    }
    
    func enableCompareEditButton() {
        if compareButton.isEnabled == false {
            compareButton.isEnabled = true
        }
