               text.style.display = "none"
 
           maintainState()
-          ele.querySelector(".rule-show").addEventListener "click", ->
+          ruleShow = ele.querySelector(".rule-show")
+          ruleShow.addEventListener "click", ->
+            ruleShow.blur()
             showing = not showing
             maintainState()
 

    showButton = element.querySelector(".container-show")

    removeButton.addEventListener "click", ->
      removeButton.style.color = "Red"
      if confirm "Are you sure you want to remove this these rules?"
        wrapper.style.display = "none"

    urlElement = $("add-network-text")
    urlElement.value = localStorage.previousUrl

    addButton = $("add-network-button")
    addButton.addEventListener "click", ->
      addButton.blur()
      fetchUrl()
    urlElement.addEventListener "keydown", (event) ->
      fetchUrl() if event.keyCode == 13

