diff --git a/app/assets/javascripts/merge_request_widget.js.coffee b/app/assets/javascripts/merge_request_widget.js.coffee
index f0a687f79b1bc0b5783714f10ae8f45a48624448..738ffc8343bfd34437915c56f7148ec2cbc8f5cc 100644
--- a/app/assets/javascripts/merge_request_widget.js.coffee
+++ b/app/assets/javascripts/merge_request_widget.js.coffee
@@ -28,9 +28,8 @@ class @MergeRequestWidget
 
   getMergeStatus: ->
     $.get @opts.url_to_automerge_check, (data) ->
-      console.log("data",data);
-      # $('div.mr-state-widget.mr-state-widget-opened').replaceWith(data)
-      
+      $('.mr-state-widget').replaceWith(data)
+
   getCiStatus: ->
     if @opts.ci_enable
       $.get @opts.url_to_ci_check, (data) =>
diff --git a/app/helpers/merge_requests_helper.rb b/app/helpers/merge_requests_helper.rb
index 6306450ca263064e46c1cf40b5b0c7bf99d0f8c3..1dd07a2a2204b0368671f57e3b89b05b82432477 100644
--- a/app/helpers/merge_requests_helper.rb
+++ b/app/helpers/merge_requests_helper.rb
@@ -19,19 +19,6 @@ module MergeRequestsHelper
     }
   end
 
-  def merge_request_button_visibility(mr, closed)    
-    return 'hidden' if mr.closed? == closed
-  end
-
-  def merge_request_widget_visibility(mr, *states)
-    states.each do |state|
-      if mr.state == state
-        return
-      end
-    end
-    return 'hidden'
-  end
-
   def mr_css_classes(mr)
     classes = "merge-request"
     classes << " closed" if mr.closed?