             case 0:
                 print("Activity segment")
             case 1:
+                let storyboard = UIStoryboard(name: "PostDetail", bundle: nil)
                 let pdVC =
-                self.storyboard!.instantiateViewControllerWithIdentifier("PostDetailViewController")
+                    storyboard.instantiateViewControllerWithIdentifier("PostDetailViewController")
                     as! PostDetailVC
                 
                 // pass data to sub-viewcontroller

    
    @IBAction func followingCountButtonPressed(sender: UIButton) {
        Tapglue.retrieveFollowsForUser(userProfile) { (following: [AnyObject]!, error: NSError!) -> Void in
            let usersViewController = self.storyboard?.instantiateViewControllerWithIdentifier("UsersViewController") as! UsersVC
            
            usersViewController.users = following as! [TGUser]
            

    
    @IBAction func followerCountButtonPressed(sender: UIButton) {
        Tapglue.retrieveFollowersForUser(userProfile) { (followers: [AnyObject]!, error: NSError!) -> Void in
            let storyboard = UIStoryboard(name: "Users", bundle: nil)
            let usersViewController = storyboard.instantiateViewControllerWithIdentifier("UsersViewController") as! UsersVC
            
            usersViewController.users = followers as! [TGUser]
            
