       @newPostForm.slideUp(300)
 
     toggleDiscussion: (event) ->
-      if @toggleDiscussionBtn.find('.button-text').text()=='Showing in Public View'
+      if @toggleDiscussionBtn.find('.button-text').text()=='Hidden from Public View'
         @toggleDiscussionBtn.removeClass('shown')
         @showed = false
       else

      else
        @newPostForm.show()
      @toggleDiscussionBtn.addClass('shown')
      @toggleDiscussionBtn.find('.button-text').html("Showing in Public View")
      @$("section.discussion").slideDown()

    hideNewPost: (event) ->

    switch_status:($elem,response)=>
      if response.visibility=='true'
        @showed=true
        @toggleDiscussionBtn.find('.button-text').html("Hidden from Public View")
      else
        @showed=false
        @toggleDiscussionBtn.find('.button-text').html("Showing in Public View")

    renderDiscussion: ($elem, response, textStatus, discussionId) =>
      window.user = new DiscussionUser(response.user_info)
