     }
     
     private func configureView() {
+        if self.contentView != nil {
+            self.contentView.removeFromSuperview()
+        }
+        let screenSize = UIScreen.main.bounds.size
+        self.frame = CGRect(x: 0,
+                            y: 0,
+                            width: screenSize.width,
+                            height: screenSize.height)
+        
         // content view
         contentView = UIView(frame: CGRect(x: 0,
                                            y: frame.height,

            }
        }
        components = calendar.dateComponents([.year, .month, .day, .hour, .minute], from: selectedDate)
        
        // animate to show contentView
        UIView.animate(withDuration: 0.3, delay: 0, usingSpringWithDamping: 0.8, initialSpringVelocity: 0.4, options: .curveEaseIn, animations: {
            self.contentView.frame = CGRect(x: 0,
                                            y: self.frame.height - contentHeight,
                                            width: self.frame.width,
                                            height: contentHeight)
        }, completion: nil)
    }
    

        contentView.layer.shadowRadius = 1.5
        contentView.layer.shadowOpacity = 0.5
        contentView.backgroundColor = .white
        contentView.isHidden = true
        addSubview(contentView)
        
        // title view
