           maxLength : 3000
         messages    :
           required  : "Please type a message..."
+
       paste:=>
         @requestEmbed()
-      blur:=>
-        @requestEmbed()
+
+      # # this will cause problems when clicking on a embedLinks url
+      # # right after entering the url -> double request
+
+      # blur:=>
+      #   @requestEmbed()
+
       keyup:=>
+        # this needs to be refactored, this will only capture URLS when the user
+        # adds a space after them
+
         if ($(event.which)[0] is 32) # when space key is hit, URL is usually complete
           @requestEmbed()
-
 
     @cancelBtn = new KDButtonView
       title       : "Cancel"

    @tagAutoComplete = @tagController.getView()

  requestEmbed:=>
    setTimeout =>
      firstUrl = @largeInput.getValue().match(/([a-zA-Z]+\:\/\/)?(\w+:\w+@)?([a-zA-Z\d.-]+\.[A-Za-z]{2,4})(:\d+)?(\/\S*)?/g)
      if firstUrl?
        @embedBox.embedLinks.setLinks firstUrl
        # if firstUrl.length is 1
        #   unless @previousURL is firstUrl

        #     unless firstUrl is null
        #       @embedBox.embedUrl firstUrl?[0], {
        #         maxWidth: 525
        #       }
        #       @previousURL = firstUrl

        # else
        #   unless @previousURL is firstUrl
        #     @embedBox.embedUrl firstUrl?[0], {
        #       maxWidth: 525
        #     }
        #     @previousURL = firstUrl
        unless @previousURL is firstUrl
          @embedBox.embedUrl firstUrl?[0], {
            maxWidth: 525
          }
          @previousURL = firstUrl
    ,500

  switchToSmallView:->


      title       : "Submit"
      type        : "submit"

    embedOptions = $.extend {}, options,
      delegate  : @
      hasConfig : yes
      click:->
        no

    @embedBox = new EmbedBox embedOptions, data

