     'click .js-remove': 'remove'
     'click .js-widget': 'widget'
     'change .js-params': 'updateParams'
-    'keyup .js-params': 'updateParams'
-    'submit .js-demo-head': 'changeDemoWebsite'
+    'input .js-params': 'updateParams'
+    'submit .js-demo-head': 'onUrlSubmit'
     'blur .js-testurl-input': 'changeDemoWebsite'
     'click .js-selectBrowserWidth': 'selectBrowserWidth'
     'click .js-swatch': 'usePaletteColor'
     'click .js-toggle-chat': 'toggleChat'
-    'input .js-chatTitle': 'changeTitle'
 
   elements:
     '.js-browser': 'browser'

    if !@url.startsWith('http')
      @url = "http://#{ @url }"

    @urlInput.addClass('is-loading').focus()

    @palette.empty()


    @code.each (i, block) ->
      hljs.highlightBlock block

    @updatePreview()
    @updateParams()

    # bind updatePreview with parameter animate = false
    $(window).on 'resize.chat-designer', => @updatePreview false

  release: ->
    $(window).off 'resize.chat-designer'
