 
 import UIKit
 
-class DiagnosedHappinessViewController: HappinessViewController {
+class DiagnosedHappinessViewController: HappinessViewController, UIPopoverPresentationControllerDelegate {
     
     // following array will be created whenever a button is pressed. So its not
     // really saving the history. Hence lets use NSUserDefaults

        }
    }
    
}
            switch identifier {
            case History.segueIdentifier:
                if let tvc = segue.destinationViewController as? TextViewController {
                    // get popover presentation controller
                    if let ppc = tvc.popoverPresentationController {
                        // this essentially says, we will handover the popovers
                        ppc.delegate = self
                    }
                    tvc.text = "\(diagnosticHistory)"
                }
            default: break
