             }
             else {
                 activityVC.modalPresentationStyle = .Popover
+                activityVC.popoverPresentationController?.sourceView = sourceView
                 logPresentingAlert(readableClassName() ?? "ProfileViewController")
                 presentViewController(activityVC, animated: true) { }
             }

        }
    }

    func sharePostTapped() {
        if let user = user,
            shareLink = user.shareLink,
            shareURL = NSURL(string: shareLink)


        var rightBarButtonItems: [UIBarButtonItem] = []
        if user.hasSharingEnabled {
            rightBarButtonItems.append(UIBarButtonItem(image: .Share, target: self, action: #selector(ProfileViewController.sharePostTapped(_:))))
        }
        rightBarButtonItems.append(UIBarButtonItem(image: .Dots, target: self, action: #selector(ProfileViewController.moreButtonTapped)))
        elloNavigationItem.rightBarButtonItems = rightBarButtonItems
