         addCommentButton.showProgress = true
         // create new response or comment
         
-        let apiRequest = DiscussionAPI.createNewComment(item.threadID, text: contentTextView.text, parentID: item.responseID)
+        let apiRequest = DiscussionAPI.createNewComment(ownerItem.threadID, text: contentTextView.text, parentID: ownerItem.responseID)
         
         environment.networkManager?.taskForRequest(apiRequest) {[weak self] result in
             self?.addCommentButton.showProgress = false

    }
    
    // For determining the context of the screen and also manipulating the relevant elements on screen
    private func setupContextFromItem(item : DiscussionItem) {
        let buttonTitle : String
        let placeholderText : String
        let navigationItemTitle : String
        
        switch item {
        case .Post(_):
            buttonTitle = Strings.addResponse
            placeholderText = Strings.addAResponse

        super.viewDidLoad()
        self.view.backgroundColor = OEXStyles.sharedStyles().discussionsBackgroundColor
        
        setupContext()
        
        contentTextView.textContainer.lineFragmentPadding = 0
        contentTextView.textContainerInset = OEXStyles.sharedStyles().standardTextViewInsets
