     }
     
     // MARK: helper methods
-    
-    func presentWebView() {
-        webViewController = IGViewController(delegate: self, callbackUrl: self.igRedirectUri)
-        let viewController :UIViewController = UIApplication.sharedApplication().keyWindow!.rootViewController!
-        viewController.presentViewController(webViewController, animated: true, completion: nil)
-    }
-    
+
     // MARK: IGViewControllerDelegate methods
     
     func success(token: String) {

    override func loadView() {
        super.loadView()
        self.view = UIView()
        self.view.backgroundColor = UIColor.blueColor()
        webView.backgroundColor = UIColor.redColor()
        self.view.addSubview(webView)
        applyConstraints()
    }

    }
    
    func applyConstraints() {
        view.addConstraint(NSLayoutConstraint(item: webView, attribute: .Top, relatedBy: .Equal, toItem: self.view, attribute: .Top, multiplier: 1, constant: 20))
        view.addConstraint(NSLayoutConstraint(item: webView, attribute: .Left, relatedBy: .Equal, toItem: self.view, attribute: .Left, multiplier: 1, constant: 0))
        view.addConstraint(NSLayoutConstraint(item: webView, attribute: .Bottom, relatedBy: .Equal, toItem: self.view, attribute: .Bottom, multiplier: 1, constant: 0))
        view.addConstraint(NSLayoutConstraint(item: webView, attribute: .Right, relatedBy: .Equal, toItem: self.view, attribute: .Right, multiplier: 1, constant: 0))
